package com.zengqingfa.designpattern.behavior.facade;

/**
 * @author zengqingfa
 * @className Facade
 * @description
 * @create 2021/8/29 12:50
 */
public class Facade {

    private Light light;
    private Heater heater;
    private Tv tv;

    public Facade() {
        light = new Light();
        heater = new Heater();
        tv = new Tv();
    }

    public void open() {
        light.open();
        heater.open();
        tv.open();
    }
}